package com.prothink.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

import java.util.Date;

/**
 * @Classtitle : JsProduct  //类名
 * @Description : 商品列表  //描述
 * @Author : Zhang //作者
 * @Date: 11/21  10:55
 */
@Data
@ToString
public class JsProduct {
    private Integer productId;      //主键
    private Integer productCode;    //商品编号
    private Integer categroyId;     //分类ID
    private Integer recommend;      //商品推荐：2 新品 3 推荐
    private Integer discount;       //是否可用优惠券 2是3否
    private Integer ensure;         //服务保证（2退货无忧，3快速退款，4包邮）(可以采用2+3、2+4、3+4、2+3+4 进行多选)
    private String productName;    //商品名称
    private String searchKeywords;  //搜索商品关键字
    private String mainImage;       //商品主图
    private BigDecimal currentpriceProduct;    //现在的价格
    private BigDecimal originalpriceProduct;   //之前的价格
    private String productDescription;      //简介
    private Integer hits;           //点击量
    private Integer productSate;    //状态：0、已删除1、上架 2、下架
    private Integer createId;        //添加人id
    private String createName;        //添加人名字
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;        //添加时间
    private Integer updateId;        //更新人id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;        //更新时间
    private String result;      //审核结果

    private String title;       //分类名称

    private String productLabel;    //标签

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductCode() {
        return productCode;
    }

    public void setProductCode(Integer productCode) {
        this.productCode = productCode;
    }

    public Integer getCategroyId() {
        return categroyId;
    }

    public void setCategroyId(Integer categroyId) {
        this.categroyId = categroyId;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getEnsure() {
        return ensure;
    }

    public void setEnsure(Integer ensure) {
        this.ensure = ensure;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSearchKeywords() {
        return searchKeywords;
    }

    public void setSearchKeywords(String searchKeywords) {
        this.searchKeywords = searchKeywords;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public BigDecimal getCurrentpriceProduct() {
        return currentpriceProduct;
    }

    public void setCurrentpriceProduct(BigDecimal currentpriceProduct) {
        this.currentpriceProduct = currentpriceProduct;
    }

    public BigDecimal getOriginalpriceProduct() {
        return originalpriceProduct;
    }

    public void setOriginalpriceProduct(BigDecimal originalpriceProduct) {
        this.originalpriceProduct = originalpriceProduct;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Integer getProductSate() {
        return productSate;
    }

    public void setProductSate(Integer productSate) {
        this.productSate = productSate;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getProductLabel() {
        return productLabel;
    }

    public void setProductLabel(String productLabel) {
        this.productLabel = productLabel;
    }
}
